package com.zzyl.serve.controller.member;

import com.zzyl.common.utils.UserThreadLocal;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//小程序预约的控制器
@RequestMapping("/member/reservation")
@Api(tags="小程序预约")
@RestController
public class  ReservationController {
    /**
     * 临时测试userid获取的方法
     *
     * 2.1查询当天取消预约数量
     * 接口地址：/member/reservation/cancelled-count
     * 请求方式：GET
     */
    @ApiOperation("查询当天取消预约数量")
    @GetMapping("/cancelled-count")
    public void cancelledCount(){
        Long userId = UserThreadLocal.getUserId();
        System.out.println("userId" + userId);
    }
}
